<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex-direction</title>
    <style>
        .box
        {
            background-color: orange;
            width: 500px;
            height: 500px;
            display: flex;
            /* flex-direction: column;
            flex-direction: row-reverse; */
            /* flex-wrap: wrap-reverse; */
             flex-wrap: wrap;
            /* justify-content: space-between;  */

            /* align-items: center; */
            justify-content: center;
            /* align-content: center; */
            /* align-items: stretch; */
            /* flex-wrap: wrap; */
            
        }
        
        .item
        {
            width: 100px;
            height: 50px;
            background-color: red;
            flex-basis: 200px;
            /* align-self: center; */
        }

        .item1
        {
            align-self: center;
        }

    </style>

</head>
<body>

    <div class="box">
      <div class="item item1">1</div>
      <div class="item">2</div>
      <div class="item">3</div>
      <div class="item">4</div>
      <div class="item">5</div>
      <div class="item">6</div>
      <div class="item">7</div>
    </div>
    
</body>
</html>